---@class UIComponentBase:UIComponentInterface
UIComponentBase = Class("UIComponentBase", UIComponentInterface)
local _M = UIComponentBase
function _M:ctor(obj,parent)
    self.fguiObj = obj
    self.parent = parent
    self.enabled = false
end
function _M:Create()
    self:OnCreate()
end

function _M:Enable()
    if self.enabled then return end
    self.enabled = true
    self:OnEnable()
end
function _M:Disable()
    if not self.enabled then return end
    self.enabled = false
    self:OnDisable()
end
function _M:Destroy()
    self:OnDestroy()
end
--region override
function _M:Init(...)

end
function _M:OnCreate()end

function _M:OnEnable()

end
function _M:OnDisable()
end
function _M:OnDestroy()
end
--endregion override